package com.hospital.demo.service.impl.libokun;

import com.hospital.demo.mapper.libokun.DrugBuyMapper;
import com.hospital.demo.model.libokun.DrugBuy;
import com.hospital.demo.service.libokun.DrugBuyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DrugBuyServiceImpl implements DrugBuyService {
    @Autowired
    DrugBuyMapper drugBuyMapper;


    @Override
    public List<DrugBuy> SelectAllBuy() {
        return drugBuyMapper.SelectAllBuy();
    }

    @Override
    public List<DrugBuy> SelectByBId(Integer drbid) {
        return drugBuyMapper.SelectByBId(drbid);
    }

    @Override
    public Integer DelectBuy(Integer drbid) {
        return drugBuyMapper.DelectBuy(drbid);
    }

    @Override
    public List<DrugBuy> InsertBuy(DrugBuy drugbuy) {
        return drugBuyMapper.InsertBuy(drugbuy);
    }
}
